package org.zs.miracle.service.auth.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.zs.miracle.common.base.dto.BaseDTO;
import org.zs.miracle.common.validate.ValidateNotNullAndEmpty;

@EqualsAndHashCode(callSuper = false) @Schema(description = "登录参数模型", name = "登录请求参数")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginInputDTO extends BaseDTO {
  
  @Serial
  private static final long serialVersionUID = 6250000014475264360L;
  
  @Schema(description = "验证码")
  private String captcha;
  
  @ValidateNotNullAndEmpty(message = "密码不能为空")
  @Schema(description = "密码")
  private String password;
  
  @ValidateNotNullAndEmpty(message = "登录账号不能为空")
  @Schema(description = "账号")
  private String account;
}